Skip to content

Fix line display from home to first waypoint if no takeoff point#708

Merged
1Blademaster merged 2 commits intorelease-alpha-0.1.10from
alpha-0.1.10/707-show-dashed-line-from-home-to-first-waypoint-if-no-takeoff
Sep 23, 2025
Merged

Fix line display from home to first waypoint if no takeoff point#708
1Blademaster merged 2 commits intorelease-alpha-0.1.10from
alpha-0.1.10/707-show-dashed-line-from-home-to-first-waypoint-if-no-takeoff

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fix the path rendering from home to the first waypoint when no explicit takeoff command exists, moving this responsibility from HomeMarker into missionItems.

  • Move home-to-first-waypoint line logic into missionItems and derive it based on presence/position of a takeoff command.
  • Replace state/effects with memoization for computing coordinates; adjust line styles and widths.
  • Remove HomeMarker lineTo prop and related drawing.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
gcs/src/components/missions/missionsMap.jsx Remove HomeMarker lineTo prop usage.
gcs/src/components/mapComponents/missionItems.jsx Compute solid/dotted lines relative to home and takeoff; refactor to useMemo; update line styles.
gcs/src/components/mapComponents/homeMarker.jsx Remove DrawLineCoordinates usage and lineTo prop from HomeMarker.
gcs/src/components/dashboard/map.jsx Remove HomeMarker lineTo prop usage.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
Comment thread gcs/src/components/mapComponents/missionItems.jsx Outdated
@1Blademaster 1Blademaster merged commit 2db1e32 into release-alpha-0.1.10 Sep 23, 2025
5 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/707-show-dashed-line-from-home-to-first-waypoint-if-no-takeoff branch September 23, 2025 17:20
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* Fix line display from home to first waypoint if no takeoff point

* Address copilot review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants